from tb_profiles.models import UserProfile
from django.contrib.auth.models import User
from django.contrib import admin

class ProfileInline(admin.TabularInline): 
      model = UserProfile
      extra = 0 

class UserAdmin(admin.ModelAdmin):
      model = User
      inlines = [ProfileInline]


admin.site.unregister(User, UserAdmin)
admin.site.register(User, UserAdmin)
